package org.zjx.window.strategy.impl;


import org.zjx.window.action.Action;
import org.zjx.window.action.impl.OpenGameAction;
import org.zjx.window.strategy.IStrategy;
import org.zjx.window.window.IWindow;
import org.zjx.window.window.impl.OpenWindow;

public class OpenStrategy implements IStrategy {

    @Override
    public Action analyze(IWindow window) {
        return new OpenGameAction(window);
    }

    @Override
    public String getName() {
        return "启动策略";
    }

    @Override
    public int getPriority() {
        return 10;
    }

    @Override
    public boolean isApplicable(IWindow window) {
        return window instanceof OpenWindow;
    }
}
